package com.boot.code.properties;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description 模块的配置
 * @date 2020/3/26 16:24
 **/

@Data
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode
public class ModuleProperties {

    /**
     * @description 基础实体名
     * @date 2020/3/26 19:42
     **/
    private String modelName;

    /**
     * @description 数据库表名
     * @date 2020/3/26 19:42
     **/
    private String tableName;

    /**
     * @description 接口 API 名
     * @date 2020/3/26 19:42
     **/
    private String apiPath;

    /**
     * @description Id 类型
     * @date 2021/3/7 14:54
     **/
    private String idType = "Long";

    private AssociationModel association;

    @Data
    public static class AssociationModel {
        private String mModule;
        private String mid;
        private String nModule;
        private String nid;
    }
}
